const webpack = require('webpack')
module.exports = {
  outputDir: 'dist',
  publicPath: './',
  productionSourceMap: process.env.NODE_ENV === 'production' ? false : true,
  // 配置scss文件全局变量
  css: {
    loaderOptions: {
      // 没有分号会报错
      sass: {
        data: '@import "@/assets/css/config.scss";' //旧版sass-loader写法(8.0以下)
      }
    }
  },
  lintOnSave: false, // 问你是否使用eslint
  chainWebpack: config => {
    config.plugin('provide').use(webpack.ProvidePlugin, [{
      'window.Quill': 'quill'
    }])
  }
}